package com.example.boot1.mapper;

import com.example.boot1.bean.VueUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface VueUserMapper {
    /**
     * delete by primary key
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(VueUser record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(VueUser record);

    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    VueUser selectByPrimaryKey(Integer id);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(VueUser record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(VueUser record);

    /**
     * 用户列表 分页
     * @param page
     * @return
     * $ 写法
     * @Param("param") String param
     */
    List<VueUser> findUserPage(@Param("page") Integer page);

    /***
     * 返回总页数
     * @return
     */
    int findAllTotal();

    void insertBig(List list);
}